<template>
  <div>
    <slot name="title">我是默认标题</slot>
    <div v-for="item in list" :key="item">
     <slot name="body" :item="item"></slot>
    </div>
    <slot name="author"></slot>
  </div>
</template>

<script>
export default {
  name: 'MyArticle',
  props: {
    list: Array
  },
  data () {
    return {
      age: 19
    }
  }
}
</script>
